package com.ihr360.job.core.repeat.exception;


import com.ihr360.job.core.repeat.RepeatContext;

/**
 * Default implementation of {@link ExceptionHandler} - just re-throws the exception it encounters.
 *
 * @author Dave Syer
 *
 */
public class DefaultExceptionHandler implements ExceptionHandler {

    /**
     * Re-throw the throwable.
     *
     * @see com.ihr360.job.repeat.exception.ExceptionHandler#handleException(RepeatContext,
     *      Throwable)
     */
    @Override
    public void handleException(RepeatContext context, Throwable throwable) throws Throwable {
        throw throwable;
    }

}